package com.xmy.cultivate.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 班级分层设置
 * </p>
 *
 * @author hpiggy
 * @since 2024-08-26
 */
@Data
@TableName("grade_layer")
@ApiModel(value = "GradeLayer对象", description = "班级分层设置")
public class GradeLayer implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.NONE)
    private Long id;

    @ApiModelProperty("年份")
    private Integer yearPart;

    @ApiModelProperty("学期")
    private Integer quarterNum;

    @ApiModelProperty("班型")
    private Long classTypeId;

    @ApiModelProperty("科目")
    private Long subjectsId;

    @ApiModelProperty("学段")
    private Integer gradeSection;

    @ApiModelProperty("年级")
    private String yearClassIdStr;

    @ApiModelProperty("年级")
    private String yearClassNameStr;

    @ApiModelProperty("类型")
    private Integer lessonType;

    @ApiModelProperty("开始分数")
    private BigDecimal startScore;

    @ApiModelProperty("结束分数")
    private BigDecimal endScore;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdAt;

    @ExcelIgnore
    @TableField(exist = false)
    private List<Integer> yearClassIdList;

}
